home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-09-08 | 4.1 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: MyInitialize.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Thu Sep 8 19:31:45 1994, modified Thu Sep 8 19:31:45 1994, creator Think C, type ASCII, 3613 bytes "MyInitialize.c" , at 0xe9d 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 4d 79 49 6e 69 74 | 69 61 6c 69 7a 65 2e 63 |..MyInit|ialize.c|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 0e 1d 00 | 00 01 7e aa 95 4f 61 aa |........|..~..Oa.|
|00000060| 95 4f 61 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.Oa.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 cd 63 00 00 |........|.....c..|
|00000080| 2f 2f 0d 2f 2f 20 4d 79 | 49 6e 69 74 69 61 6c 69 |//.// My|Initiali|
|00000090| 7a 65 2e 63 0d 2f 2f 0d | 2f 2f 20 57 72 69 74 74 |ze.c.//.|// Writt|
|000000a0| 65 6e 20 62 79 20 4b 65 | 6e 20 57 6f 72 6c 65 79 |en by Ke|n Worley|
|000000b0| 2c 20 30 36 2f 30 33 2f | 39 34 2c 20 75 73 69 6e |, 06/03/|94, usin|
|000000c0| 67 20 53 79 6d 61 6e 74 | 65 63 20 54 68 69 6e 6b |g Symant|ec Think|
|000000d0| 20 43 20 37 2e 30 0d 2f | 2f 20 43 6f 70 79 72 69 | C 7.0./|/ Copyri|
|000000e0| 67 68 74 20 31 39 39 34 | 2e 0d 2f 2f 20 41 4f 4c |ght 1994|..// AOL|
|000000f0| 20 4b 4e 45 77 6f 72 6c | 65 79 0d 2f 2f 20 69 6e | KNEworl|ey.// in|
|00000100| 74 65 72 6e 65 74 20 4b | 4e 45 77 6f 72 6c 65 79 |ternet K|NEworley|
|00000110| 40 61 6f 6c 2e 63 6f 6d | 0d 2f 2f 0d 2f 2f 09 46 |@aol.com|.//.//.F|
|00000120| 65 65 6c 20 66 72 65 65 | 20 74 6f 20 75 73 65 20 |eel free| to use |
|00000130| 74 68 69 73 20 63 6f 64 | 65 20 69 6e 20 61 20 70 |this cod|e in a p|
|00000140| 72 6f 6a 65 63 74 20 6f | 66 20 79 6f 75 72 20 6f |roject o|f your o|
|00000150| 77 6e 2c 20 62 75 74 20 | 67 69 76 65 20 6d 65 20 |wn, but |give me |
|00000160| 70 72 6f 70 65 72 0d 2f | 2f 09 63 72 65 64 69 74 |proper./|/.credit|
|00000170| 20 69 6e 20 79 6f 75 72 | 20 64 6f 63 75 6d 65 6e | in your| documen|
|00000180| 74 61 74 69 6f 6e 20 6f | 72 20 61 62 6f 75 74 20 |tation o|r about |
|00000190| 62 6f 78 2e 20 20 46 65 | 65 6c 20 66 72 65 65 20 |box. Fe|el free |
|000001a0| 74 6f 20 64 69 73 74 72 | 69 62 75 74 65 20 74 68 |to distr|ibute th|
|000001b0| 69 73 0d 2f 2f 09 63 6f | 64 65 20 69 6e 20 69 74 |is.//.co|de in it|
|000001c0| 73 20 65 6e 74 69 72 65 | 74 79 20 74 6f 20 61 6e |s entire|ty to an|
|000001d0| 79 6f 6e 65 2c 20 62 75 | 74 20 6e 65 76 65 72 20 |yone, bu|t never |
|000001e0| 64 6f 20 73 6f 20 77 69 | 74 68 6f 75 74 20 74 68 |do so wi|thout th|
|000001f0| 65 20 63 6f 70 79 72 69 | 67 68 74 0d 2f 2f 09 6e |e copyri|ght.//.n|
|00000200| 6f 74 69 63 65 20 61 62 | 6f 76 65 20 6e 6f 72 20 |otice ab|ove nor |
|00000210| 77 69 74 68 6f 75 74 20 | 69 74 73 20 61 63 63 6f |without |its acco|
|00000220| 6d 70 61 6e 79 69 6e 67 | 20 66 69 6c 65 73 2e 20 |mpanying| files. |
|00000230| 20 54 68 69 73 20 63 6f | 64 65 20 69 73 20 4e 4f | This co|de is NO|
|00000240| 54 20 69 6e 0d 2f 2f 09 | 74 68 65 20 70 75 62 6c |T in.//.|the publ|
|00000250| 69 63 20 64 6f 6d 61 69 | 6e 2e 20 20 55 73 65 20 |ic domai|n. Use |
|00000260| 6f 66 20 74 68 69 73 20 | 63 6f 64 65 20 69 6e 20 |of this |code in |
|00000270| 61 20 63 6f 6d 6d 65 72 | 63 69 61 6c 20 70 72 6f |a commer|cial pro|
|00000280| 64 75 63 74 20 72 65 71 | 75 69 72 65 73 20 6d 79 |duct req|uires my|
|00000290| 0d 2f 2f 09 70 65 72 6d | 69 73 73 69 6f 6e 2e 0d |.//.perm|ission..|
|000002a0| 2f 2f 0d 2f 2f 20 54 68 | 69 73 20 66 69 6c 65 20 |//.// Th|is file |
|000002b0| 74 61 6b 65 73 20 63 61 | 72 65 20 6f 66 20 61 6c |takes ca|re of al|
|000002c0| 6c 6f 63 61 74 69 6e 67 | 20 6d 65 6d 6f 72 79 2c |locating| memory,|
|000002d0| 20 6c 6f 61 64 69 6e 67 | 20 72 65 73 6f 75 72 63 | loading| resourc|
|000002e0| 65 73 2c 20 61 6e 64 20 | 69 6e 69 74 69 61 6c 69 |es, and |initiali|
|000002f0| 7a 69 6e 67 0d 2f 2f 20 | 76 61 72 69 61 62 6c 65 |zing.// |variable|
|00000300| 73 20 73 70 65 63 69 66 | 69 63 20 74 6f 20 74 68 |s specif|ic to th|
|00000310| 65 20 66 75 6e 63 74 69 | 6f 6e 20 6f 66 20 74 68 |e functi|on of th|
|00000320| 65 20 66 69 6c 74 65 72 | 2e 20 20 57 65 20 75 73 |e filter|. We us|
|00000330| 65 20 74 68 69 73 20 66 | 69 6c 65 20 6d 61 69 6e |e this f|ile main|
|00000340| 6c 79 20 74 6f 0d 2f 2f | 20 73 65 74 20 66 75 6e |ly to.//| set fun|
|00000350| 63 74 69 6f 6e 20 73 70 | 65 63 69 66 69 63 20 63 |ction sp|ecific c|
|00000360| 6f 64 65 20 6f 66 66 20 | 66 72 6f 6d 20 74 68 65 |ode off |from the|
|00000370| 20 72 65 73 74 20 6f 66 | 20 74 68 65 20 63 6f 64 | rest of| the cod|
|00000380| 65 20 74 68 61 74 20 64 | 6f 65 73 6e 27 74 20 63 |e that d|oesn't c|
|00000390| 68 61 6e 67 65 0d 2f 2f | 20 6d 75 63 68 20 66 72 |hange.//| much fr|
|000003a0| 6f 6d 20 70 72 6f 6a 65 | 63 74 20 74 6f 20 70 72 |om proje|ct to pr|
|000003b0| 6f 6a 65 63 74 2e 0d 2f | 2f 0d 2f 2f 20 54 68 69 |oject../|/.// Thi|
|000003c0| 73 20 72 6f 75 74 69 6e | 65 20 69 73 20 61 6c 6c |s routin|e is all|
|000003d0| 6f 77 65 64 20 74 6f 20 | 63 68 61 6e 67 65 20 74 |owed to |change t|
|000003e0| 68 65 20 76 61 6c 75 65 | 73 20 6f 66 20 69 6e 73 |he value|s of ins|
|000003f0| 74 61 6c 6c 54 61 73 6b | 2c 20 61 6e 64 20 73 68 |tallTask|, and sh|
|00000400| 6f 77 49 63 6f 6e 2e 0d | 2f 2f 20 54 68 65 73 65 |owIcon..|// These|
|00000410| 20 76 61 72 69 61 62 6c | 65 73 20 68 61 76 65 20 | variabl|es have |
|00000420| 61 6c 72 65 61 64 79 20 | 62 65 65 6e 20 69 6e 69 |already |been ini|
|00000430| 74 69 61 6c 69 7a 65 64 | 20 62 79 20 74 68 65 20 |tialized| by the |
|00000440| 63 61 6c 6c 69 6e 67 20 | 72 6f 75 74 69 6e 65 2c |calling |routine,|
|00000450| 20 62 75 74 20 74 68 65 | 69 72 0d 2f 2f 20 76 61 | but the|ir.// va|
|00000460| 6c 75 65 73 20 63 61 6e | 20 62 65 20 63 68 61 6e |lues can| be chan|
|00000470| 67 65 64 20 68 65 72 65 | 20 69 66 20 6e 65 65 64 |ged here| if need|
|00000480| 20 62 65 2e 20 20 69 6e | 73 74 61 6c 6c 54 61 73 | be. in|stallTas|
|00000490| 6b 20 64 65 74 65 72 6d | 69 6e 65 73 20 77 68 65 |k determ|ines whe|
|000004a0| 74 68 65 72 20 6f 72 0d | 2f 2f 20 6e 6f 74 20 74 |ther or.|// not t|
|000004b0| 68 65 20 66 69 6c 74 65 | 72 20 63 6f 64 65 20 69 |he filte|r code i|
|000004c0| 73 20 61 63 74 75 61 6c | 6c 79 20 69 6e 73 74 61 |s actual|ly insta|
|000004d0| 6c 6c 65 64 2c 20 61 6e | 64 20 73 68 6f 77 49 63 |lled, an|d showIc|
|000004e0| 6f 6e 20 64 65 74 65 72 | 6d 69 6e 65 73 20 77 68 |on deter|mines wh|
|000004f0| 65 74 68 65 72 20 6f 72 | 0d 2f 2f 20 6e 6f 74 20 |ether or|.// not |
|00000500| 74 68 65 20 69 63 6f 6e | 20 69 73 20 73 68 6f 77 |the icon| is show|
|00000510| 6e 20 61 74 20 73 74 61 | 72 74 75 70 20 74 69 6d |n at sta|rtup tim|
|00000520| 65 2e 20 20 28 73 68 6f | 77 49 63 6f 6e 20 69 73 |e. (sho|wIcon is|
|00000530| 20 63 61 6c 6c 65 64 20 | 73 68 6f 77 53 74 61 72 | called |showStar|
|00000540| 74 75 70 49 63 6f 6e 0d | 2f 2f 20 69 6e 20 74 68 |tupIcon.|// in th|
|00000550| 65 20 63 61 6c 6c 69 6e | 67 20 72 6f 75 74 69 6e |e callin|g routin|
|00000560| 65 29 0d 2f 2f 0d 2f 2f | 09 57 65 20 75 73 65 20 |e).//.//|.We use |
|00000570| 77 68 61 74 20 49 20 63 | 61 6c 6c 20 61 20 27 70 |what I c|all a 'p|
|00000580| 72 65 66 65 72 65 6e 63 | 65 73 27 20 72 65 73 6f |referenc|es' reso|
|00000590| 75 72 63 65 20 74 6f 20 | 73 61 76 65 20 73 6f 6d |urce to |save som|
|000005a0| 65 20 73 65 74 74 69 6e | 67 73 20 62 65 74 77 65 |e settin|gs betwe|
|000005b0| 65 6e 0d 2f 2f 09 72 65 | 73 74 61 72 74 73 2e 20 |en.//.re|starts. |
|000005c0| 20 46 6f 72 20 74 68 65 | 20 6d 6f 73 74 20 70 61 | For the| most pa|
|000005d0| 72 74 2c 20 74 68 69 73 | 20 73 61 6d 65 20 69 6e |rt, this| same in|
|000005e0| 66 6f 72 6d 61 74 69 6f | 6e 20 69 73 20 61 6c 73 |formatio|n is als|
|000005f0| 6f 20 68 65 6c 64 20 69 | 6e 20 6d 65 6d 6f 72 79 |o held i|n memory|
|00000600| 0d 2f 2f 09 28 69 6e 20 | 74 68 65 20 73 68 61 72 |.//.(in |the shar|
|00000610| 65 64 20 64 61 74 61 20 | 73 74 72 75 63 74 75 72 |ed data |structur|
|00000620| 65 29 20 77 68 69 6c 65 | 20 74 68 65 20 63 6f 6d |e) while| the com|
|00000630| 70 75 74 65 72 20 69 73 | 20 72 75 6e 6e 69 6e 67 |puter is| running|
|00000640| 20 73 6f 20 74 68 61 74 | 20 74 68 65 0d 2f 2f 09 | so that| the.//.|
|00000650| 74 61 73 6b 20 63 6f 64 | 65 20 61 6e 64 20 63 64 |task cod|e and cd|
|00000660| 65 76 20 63 61 6e 20 61 | 63 63 65 73 73 20 74 68 |ev can a|ccess th|
|00000670| 65 20 73 65 74 74 69 6e | 67 73 2e 20 20 54 68 65 |e settin|gs. The|
|00000680| 20 72 65 73 6f 75 72 63 | 65 20 69 73 20 6e 6f 72 | resourc|e is nor|
|00000690| 6d 61 6c 6c 79 20 61 63 | 63 65 73 73 65 64 0d 2f |mally ac|cessed./|
|000006a0| 2f 09 6f 6e 63 65 20 68 | 65 72 65 2c 20 74 68 65 |/.once h|ere, the|
|000006b0| 6e 20 61 63 63 65 73 73 | 65 64 20 61 6e 64 20 70 |n access|ed and p|
|000006c0| 6f 73 73 69 62 6c 79 20 | 63 68 61 6e 67 65 64 20 |ossibly |changed |
|000006d0| 6c 61 74 65 72 20 62 79 | 20 74 68 65 0d 2f 2f 09 |later by| the.//.|
|000006e0| 63 6f 6e 74 72 6f 6c 20 | 70 61 6e 65 6c 20 63 6f |control |panel co|
|000006f0| 64 65 2e 0d 2f 2f 0d 2f | 2f 09 54 68 69 73 20 70 |de..//./|/.This p|
|00000700| 72 65 66 65 72 65 6e 63 | 65 73 20 72 65 73 6f 75 |referenc|es resou|
|00000710| 72 63 65 20 63 6f 6e 74 | 61 69 6e 73 20 76 61 6c |rce cont|ains val|
|00000720| 75 65 73 20 74 68 61 74 | 20 69 6e 64 69 63 61 74 |ues that| indicat|
|00000730| 65 20 77 68 65 74 68 65 | 72 20 6f 72 20 6e 6f 74 |e whethe|r or not|
|00000740| 20 74 68 65 0d 2f 2f 09 | 74 61 73 6b 20 73 68 6f | the.//.|task sho|
|00000750| 75 6c 64 20 62 65 20 69 | 6e 73 74 61 6c 6c 65 64 |uld be i|nstalled|
|00000760| 20 28 63 6f 6e 74 72 6f | 6c 20 70 61 6e 65 6c 20 | (contro|l panel |
|00000770| 6f 6e 20 6f 72 20 6f 66 | 66 29 20 61 6e 64 20 77 |on or of|f) and w|
|00000780| 68 65 74 68 65 72 20 6f | 72 20 6e 6f 74 20 74 68 |hether o|r not th|
|00000790| 65 0d 2f 2f 09 69 63 6f | 6e 20 73 68 6f 75 6c 64 |e.//.ico|n should|
|000007a0| 20 62 65 20 73 68 6f 77 | 6e 20 61 74 20 73 74 61 | be show|n at sta|
|000007b0| 72 74 75 70 20 74 69 6d | 65 2e 0d 2f 2f 0d 0d 42 |rtup tim|e..//..B|
|000007c0| 6f 6f 6c 65 61 6e 20 4d | 79 49 6e 69 74 69 61 6c |oolean M|yInitial|
|000007d0| 69 7a 65 28 20 6d 79 44 | 61 74 61 50 74 72 20 6d |ize( myD|ataPtr m|
|000007e0| 79 44 61 74 61 2c 20 42 | 6f 6f 6c 65 61 6e 20 2a |yData, B|oolean *|
|000007f0| 69 6e 73 74 61 6c 6c 54 | 61 73 6b 2c 20 42 6f 6f |installT|ask, Boo|
|00000800| 6c 65 61 6e 20 2a 73 68 | 6f 77 49 63 6f 6e 20 29 |lean *sh|owIcon )|
|00000810| 0d 7b 0d 09 42 6f 6f 6c | 65 61 6e 09 09 09 09 73 |.{..Bool|ean....s|
|00000820| 74 69 6c 6c 4f 4b 20 3d | 20 74 72 75 65 3b 09 2f |tillOK =| true;./|
|00000830| 2a 20 72 65 74 75 72 6e | 20 76 61 6c 75 65 20 2a |* return| value *|
|00000840| 2f 0d 09 43 50 70 72 65 | 66 73 48 61 6e 64 6c 65 |/..CPpre|fsHandle|
|00000850| 09 09 70 72 65 66 73 48 | 61 6e 64 6c 65 3b 09 2f |..prefsH|andle;./|
|00000860| 2a 20 48 61 6e 64 6c 65 | 20 74 6f 20 74 68 65 20 |* Handle| to the |
|00000870| 63 64 65 76 20 70 72 65 | 66 73 20 72 73 72 63 20 |cdev pre|fs rsrc |
|00000880| 2a 2f 0d 0d 09 2f 2f 20 | 49 6e 69 74 69 61 6c 69 |*/...// |Initiali|
|00000890| 7a 65 20 74 68 65 20 70 | 72 65 66 65 72 65 6e 63 |ze the p|referenc|
|000008a0| 65 73 20 72 65 73 6f 75 | 72 63 65 20 68 61 6e 64 |es resou|rce hand|
|000008b0| 6c 65 20 69 6e 20 6d 79 | 44 61 74 61 20 74 6f 20 |le in my|Data to |
|000008c0| 4e 55 4c 4c 0d 09 0d 09 | 09 6d 79 44 61 74 61 2d |NULL....|.myData-|
|000008d0| 3e 43 50 70 72 65 66 73 | 52 73 72 63 20 3d 20 4e |>CPprefs|Rsrc = N|
|000008e0| 55 4c 4c 3b 0d 09 09 09 | 0d 09 2f 2f 09 4c 6f 61 |ULL;....|..//.Loa|
|000008f0| 64 20 74 68 65 20 63 6f | 6e 74 72 6f 6c 20 70 61 |d the co|ntrol pa|
|00000900| 6e 65 6c 27 73 20 70 72 | 65 66 65 72 65 6e 63 65 |nel's pr|eference|
|00000910| 73 20 72 65 73 6f 75 72 | 63 65 20 74 6f 20 73 65 |s resour|ce to se|
|00000920| 65 20 69 66 20 77 65 20 | 73 68 6f 75 6c 64 20 73 |e if we |should s|
|00000930| 68 6f 77 0d 09 2f 2f 09 | 74 68 65 20 69 63 6f 6e |how..//.|the icon|
|00000940| 20 61 74 20 73 74 61 72 | 74 75 70 20 61 6e 64 20 | at star|tup and |
|00000950| 74 68 65 20 74 61 73 6b | 20 73 68 6f 75 6c 64 20 |the task| should |
|00000960| 62 65 20 27 6f 6e 2e 27 | 20 20 41 66 74 65 72 20 |be 'on.'| After |
|00000970| 77 65 27 76 65 20 72 65 | 61 64 20 69 74 2c 0d 09 |we've re|ad it,..|
|00000980| 2f 2f 09 72 65 6c 65 61 | 73 65 20 69 74 2e 20 20 |//.relea|se it. |
|00000990| 54 68 65 20 63 6f 6e 74 | 72 6f 6c 20 70 61 6e 65 |The cont|rol pane|
|000009a0| 6c 20 77 69 6c 6c 20 72 | 65 6c 6f 61 64 20 69 74 |l will r|eload it|
|000009b0| 2e 20 20 49 66 20 77 65 | 20 63 61 6e 6e 6f 74 20 |. If we| cannot |
|000009c0| 72 65 61 64 20 74 68 65 | 0d 09 2f 2f 09 72 65 73 |read the|..//.res|
|000009d0| 6f 75 72 63 65 20 66 72 | 6f 6d 20 74 68 65 20 66 |ource fr|om the f|
|000009e0| 69 6c 65 20 28 70 72 6f | 62 61 62 6c 79 20 62 65 |ile (pro|bably be|
|000009f0| 63 61 75 73 65 20 69 74 | 20 64 6f 65 73 6e 27 74 |cause it| doesn't|
|00000a00| 20 79 65 74 20 65 78 69 | 73 74 29 2c 20 6a 75 73 | yet exi|st), jus|
|00000a10| 74 0d 09 2f 2f 09 61 73 | 73 75 6d 65 20 74 72 75 |t..//.as|sume tru|
|00000a20| 65 20 66 6f 72 20 6f 6e | 2f 6f 66 66 20 61 6e 64 |e for on|/off and|
|00000a30| 20 73 68 6f 77 20 69 63 | 6f 6e 20 61 6e 64 20 75 | show ic|on and u|
|00000a40| 73 65 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 6d |se the d|efault m|
|00000a50| 6f 64 69 66 69 65 72 20 | 6b 65 79 73 2e 0d 09 2f |odifier |keys.../|
|00000a60| 2f 20 20 54 68 65 20 63 | 6f 6e 74 72 6f 6c 20 70 |/ The c|ontrol p|
|00000a70| 61 6e 65 6c 20 77 69 6c | 6c 20 63 72 65 61 74 65 |anel wil|l create|
|00000a80| 20 61 20 6e 65 77 20 70 | 72 65 66 65 72 65 6e 63 | a new p|referenc|
|00000a90| 65 73 20 72 65 73 6f 75 | 72 63 65 20 69 66 20 6e |es resou|rce if n|
|00000aa0| 65 65 64 20 62 65 2e 0d | 20 0d 09 20 09 6d 79 44 |eed be..| .. .myD|
|00000ab0| 61 74 61 2d 3e 43 50 6f | 6e 20 3d 20 74 72 75 65 |ata->CPo|n = true|
|00000ac0| 3b 09 2f 2a 20 70 72 65 | 73 65 74 20 74 6f 20 27 |;./* pre|set to '|
|00000ad0| 6f 6e 27 20 75 6e 6c 65 | 73 73 20 77 65 20 66 69 |on' unle|ss we fi|
|00000ae0| 6e 64 20 6f 74 68 65 72 | 77 69 73 65 20 2a 2f 0d |nd other|wise */.|
|00000af0| 09 20 09 09 09 09 09 09 | 2f 2a 20 69 6e 73 74 61 |. ......|/* insta|
|00000b00| 6c 6c 54 61 73 6b 20 77 | 61 73 20 61 6c 73 6f 20 |llTask w|as also |
|00000b10| 70 72 65 73 65 74 20 74 | 6f 20 74 72 75 65 20 61 |preset t|o true a|
|00000b20| 62 6f 76 65 20 2a 2f 0d | 09 20 09 0d 09 20 09 2f |bove */.|. ... ./|
|00000b30| 2a 20 54 68 69 73 20 73 | 61 6d 70 6c 65 20 63 61 |* This s|ample ca|
|00000b40| 70 74 75 72 65 73 20 6d | 6f 75 73 65 20 63 6c 69 |ptures m|ouse cli|
|00000b50| 63 6b 73 20 77 68 65 6e | 20 74 68 65 73 65 20 6d |cks when| these m|
|00000b60| 6f 64 69 66 69 65 72 73 | 20 61 72 65 20 64 6f 77 |odifiers| are dow|
|00000b70| 6e 20 2a 2f 0d 09 20 09 | 0d 09 20 09 6d 79 44 61 |n */.. .|.. .myDa|
|00000b80| 74 61 2d 3e 43 50 6d 6f | 64 69 66 69 65 72 73 20 |ta->CPmo|difiers |
|00000b90| 3d 20 63 6f 6e 74 72 6f | 6c 4b 65 79 20 2b 20 6f |= contro|lKey + o|
|00000ba0| 70 74 69 6f 6e 4b 65 79 | 20 2b 20 73 68 69 66 74 |ptionKey| + shift|
|00000bb0| 4b 65 79 3b 0d 09 20 09 | 09 09 09 09 09 09 09 09 |Key;.. .|........|
|00000bc0| 2f 2a 20 70 72 65 73 65 | 74 20 6d 6f 64 69 66 69 |/* prese|t modifi|
|00000bd0| 65 72 73 20 74 6f 20 64 | 65 66 61 75 6c 74 20 2a |ers to d|efault *|
|00000be0| 2f 0d 09 20 09 0d 09 20 | 09 70 72 65 66 73 48 61 |/.. ... |.prefsHa|
|00000bf0| 6e 64 6c 65 20 3d 20 4e | 55 4c 4c 3b 0d 09 20 09 |ndle = N|ULL;.. .|
|00000c00| 0d 09 20 09 70 72 65 66 | 73 48 61 6e 64 6c 65 20 |.. .pref|sHandle |
|00000c10| 3d 20 28 43 50 70 72 65 | 66 73 48 61 6e 64 6c 65 |= (CPpre|fsHandle|
|00000c20| 29 47 65 74 31 52 65 73 | 6f 75 72 63 65 28 20 6b |)Get1Res|ource( k|
|00000c30| 43 50 70 72 65 66 73 52 | 73 72 63 54 79 70 65 2c |CPprefsR|srcType,|
|00000c40| 0d 09 20 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |.. .....|........|
|00000c50| 6b 43 50 70 72 65 66 73 | 52 73 72 63 49 44 20 29 |kCPprefs|RsrcID )|
|00000c60| 3b 0d 09 20 09 69 66 20 | 28 20 70 72 65 66 73 48 |;.. .if |( prefsH|
|00000c70| 61 6e 64 6c 65 20 29 0d | 09 20 09 7b 0d 09 20 09 |andle ).|. .{.. .|
|00000c80| 09 69 66 20 28 20 21 28 | 2a 70 72 65 66 73 48 61 |.if ( !(|*prefsHa|
|00000c90| 6e 64 6c 65 29 2d 3e 4f | 6e 20 29 09 2f 2f 20 63 |ndle)->O|n ).// c|
|00000ca0| 6f 6e 74 72 6f 6c 20 70 | 61 6e 65 6c 20 73 65 74 |ontrol p|anel set|
|00000cb0| 20 74 6f 20 6f 66 66 3f | 0d 09 20 09 09 7b 0d 09 | to off?|.. ..{..|
|00000cc0| 20 09 09 09 2a 69 6e 73 | 74 61 6c 6c 54 61 73 6b | ...*ins|tallTask|
|00000cd0| 20 3d 20 66 61 6c 73 65 | 3b 0d 09 20 09 09 09 6d | = false|;.. ...m|
|00000ce0| 79 44 61 74 61 2d 3e 43 | 50 6f 6e 20 3d 20 66 61 |yData->C|Pon = fa|
|00000cf0| 6c 73 65 3b 0d 09 20 09 | 09 7d 0d 09 20 09 09 0d |lse;.. .|.}.. ...|
|00000d00| 09 20 09 09 69 66 20 28 | 20 21 28 2a 70 72 65 66 |. ..if (| !(*pref|
|00000d10| 73 48 61 6e 64 6c 65 29 | 2d 3e 53 68 6f 77 49 63 |sHandle)|->ShowIc|
|00000d20| 6f 6e 20 29 09 2f 2f 20 | 73 68 6f 77 20 69 63 6f |on ).// |show ico|
|00000d30| 6e 3f 0d 09 20 09 09 09 | 2a 73 68 6f 77 49 63 6f |n?.. ...|*showIco|
|00000d40| 6e 20 3d 20 66 61 6c 73 | 65 3b 0d 09 20 09 09 0d |n = fals|e;.. ...|
|00000d50| 09 20 09 09 6d 79 44 61 | 74 61 2d 3e 43 50 6d 6f |. ..myDa|ta->CPmo|
|00000d60| 64 69 66 69 65 72 73 20 | 3d 20 28 2a 70 72 65 66 |difiers |= (*pref|
|00000d70| 73 48 61 6e 64 6c 65 29 | 2d 3e 6d 6f 64 69 66 69 |sHandle)|->modifi|
|00000d80| 65 72 73 3b 0d 09 20 09 | 09 09 0d 09 20 09 09 52 |ers;.. .|.... ..R|
|00000d90| 65 6c 65 61 73 65 52 65 | 73 6f 75 72 63 65 28 20 |eleaseRe|source( |
|00000da0| 28 48 61 6e 64 6c 65 29 | 70 72 65 66 73 48 61 6e |(Handle)|prefsHan|
|00000db0| 64 6c 65 20 29 3b 0d 09 | 20 09 7d 0d 0d 09 2f 2a |dle );..| .}.../*|
|00000dc0| 20 49 66 20 61 6e 79 20 | 6b 65 79 73 20 61 72 65 | If any |keys are|
|00000dd0| 20 64 6f 77 6e 2c 20 64 | 6f 20 6e 6f 74 20 6c 6f | down, d|o not lo|
|00000de0| 61 64 20 28 74 68 69 73 | 20 6d 65 61 6e 73 20 41 |ad (this| means A|
|00000df0| 4e 59 20 6b 65 79 29 20 | 2a 2f 0d 09 0d 09 09 7b |NY key) |*/.....{|
|00000e00| 0d 09 09 09 4b 65 79 4d | 61 70 09 74 68 65 4b 65 |....KeyM|ap.theKe|
|00000e10| 79 73 3b 0d 09 09 09 0d | 09 09 09 47 65 74 4b 65 |ys;.....|...GetKe|
|00000e20| 79 73 28 20 74 68 65 4b | 65 79 73 20 29 3b 0d 09 |ys( theK|eys );..|
|00000e30| 09 09 69 66 20 28 20 74 | 68 65 4b 65 79 73 5b 30 |..if ( t|heKeys[0|
|00000e40| 5d 20 7c 7c 20 74 68 65 | 4b 65 79 73 5b 31 5d 20 |] || the|Keys[1] |
|00000e50| 7c 7c 20 74 68 65 4b 65 | 79 73 5b 32 5d 20 7c 7c ||| theKe|ys[2] |||
|00000e60| 20 74 68 65 4b 65 79 73 | 5b 33 5d 20 29 0d 09 09 | theKeys|[3] )...|
|00000e70| 09 09 73 74 69 6c 6c 4f | 4b 20 3d 20 66 61 6c 73 |..stillO|K = fals|
|00000e80| 65 3b 0d 09 09 7d 0d 09 | 0d 09 20 72 65 74 75 72 |e;...}..|.. retur|
|00000e90| 6e 20 73 74 69 6c 6c 4f | 4b 3b 0d 7d 0d 00 00 00 |n stillO|K;.}....|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000f10| 00 00 00 24 15 45 78 74 | 65 6e 73 69 6f 6e 73 20 |...$.Ext|ensions |
|00000f20| 28 64 69 73 61 62 6c 65 | 64 29 01 00 00 00 00 08 |(disable|d)......|
|00000f30| 0e 4d 79 49 6e 69 74 69 | 61 6c 69 7a 65 2e 63 4d |.MyIniti|alize.cM|
|00000f40| 02 00 00 00 50 61 72 74 | 53 49 54 78 00 00 00 00 |....Part|SITx....|
|00000f50| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 aa da 77 d3 00 00 | 00 00 00 00 01 7e 02 00 |....w...|.....~..|
|00000f80| 00 00 46 4e 44 52 4d 41 | 43 53 11 00 00 00 00 80 |..FNDRMA|CS......|
|00000f90| 00 00 00 00 02 25 00 00 | 00 00 00 00 00 00 00 00 |.....%..|........|
|00000fa0| 00 00 00 05 c2 c3 00 05 | c4 00 a6 c2 74 40 a8 bc |........|....t@..|
|00000fb0| ae 45 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.E......|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 13 3a 00 7b | 00 00 00 00 00 00 00 00 |.....:.{|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001020| 00 00 00 00 00 00 00 06 | 00 04 00 26 00 02 01 de |........|...&....|
|00001030| 02 7e 00 4c 00 3c 01 d6 | 02 64 aa 19 f8 65 00 00 |.~.L.<..|.d...e..|
|00001040| 0b 3c 00 00 0b 3c 00 00 | 00 00 00 00 00 00 01 00 |.<...<..|........|
|00001050| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 32 a1 e8 |...L...L|...2.2..|
|00001060| 10 2a 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.*.....2|..MPSR..|
|00001070| 00 0a 03 ed ff ff 00 00 | 00 00 00 32 a0 f4 00 00 |........|...2....|
+--------+-------------------------+-------------------------+--------+--------+